home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n02.arc / NOCASE.BAT < prev    next >
DOS Batch File  |  1990-01-02  |  685b  |  26 lines

  1. @ECHO OFF
  2. IF "%2"=="" GOTO params
  3. SET %1=qrx
  4. IF "%DYNAMIC%"=="qrx" GOTO accept1
  5. SET %1=
  6. ECHO Your first command line parameter must be "dynamic", or "DYNAMIC",
  7. ECHO or "dYnAmIc" -- the case doesn't matter.
  8. GOTO end
  9. :accept1
  10. SET %1=
  11. SET %2=qrx
  12. IF "%DUO%"=="qrx" GOTO accept2
  13. SET %2=
  14. ECHO Your second command line parameter must be "duo", or "DUO",
  15. ECHO or "dUo" -- the case doesn't matter.
  16. GOTO end
  17. :accept2
  18. SET %2=
  19. ECHO You have properly entered "Dynamic Duo".
  20. GOTO end
  21. :params
  22. ECHO Enter "%0 dynamic duo", and note that the CASE of your command
  23. ECHO line parameters doesn't matter.  "DyNaMiC duO" is fine, as long
  24. ECHO as you spell the words correctly.
  25. :end
  26.